<template>
  <div>
    <div class="empty-img">
      <img src="../../../../static/images/shiming/empty_1.png" alt="">
    </div>
    <div class="empty-text">
      <p>你提交的店铺认证申请，正在审核中...</p>
      <p>"预计1个工作日内审核完毕，审核结果会短信通知到你的注册手机号上"</p>
    </div>
    <div class="btn-box">
      <button class="weui-btn weui-btn_warn" @click="goBack">知道了</button>
    </div>
  </div>
</template>

<script>
  import {setUser,getUser} from "../../../assets/js/tools";
  import {getUserMsg} from "../../../assets/js/getData";

  export default {
    name: "shopAudit",
    data(){
      return {
        user:null,
      }
    },
    created(){
      this.user = getUser();
      getUserMsg().then(res => {
        if(res.data.reqResult.code>0){
          let data = res.data.data.user;
          this.user.shopAudittingStatus = data.shopAudittingStatus;
          setUser(this.user);
        }else {
          Toast(res.data.reqResult.msg);
        }
      });
    },
    methods:{
      goBack(){
        this.$router.replace({name:'me'});
      }
    }
  }
</script>

<style scoped>
  .empty-img{
    width: 6.6rem;
    margin: 0 auto;
    margin-top: 4.15rem;
  }
  .empty-img img{
    width: 100%;
  }
  .empty-text p:first-child{
    font-size: 0.9rem;
    color: #585858;
    text-align: center;
  }
  .empty-text p:last-child{
    font-size: 0.7rem;
    color: #878787;
    text-align: center;
    padding: 0 3.75rem;
    line-height: 1rem;
    margin-top: 0.3rem;
  }
  .btn-box{
    width: 6.05rem;
    margin: 0 auto;
    padding: 0;
    margin-top: 0.65rem;
  }
  .weui-btn_warn{
    line-height: 1.6rem;
    font-size: 0.7rem;
  }
</style>

